<?php

use Illuminate\Http\Request;
use Illuminate\Support\Facades\Route;
use \App\Http\Controllers\AqController;

Route::get('/user', function (Request $request) {
    return $request->user();
})->middleware('auth:sanctum');


Route::get('system/model/modelList', [AqController::class, 'modelList']);
Route::get('system/init', [AqController::class, 'initData']);
Route::any('chat/send',[AqController::class, 'sendChat']);
Route::get('system/session/list', [AqController::class, 'sessionList']);
Route::put('system/session', [AqController::class, 'updateSession']);
Route::delete('system/session/{id}', [AqController::class, 'deleteSession']);
Route::get('system/message/list',[AqController::class, 'messageList']);
Route::get('system/session/{id}', [AqController::class, 'sessionInfo']);
Route::post('system/session', [AqController::class, 'createSession']);
Route::delete('system/clear/{modelId}', [AqController::class, 'clearSession']);
Route::post('system/upload', [AqController::class, 'uploadFile']);
Route::post('system/chat/files', [AqController::class, 'getFiles']);

Route::post('system/chat/rate', [AqController::class, 'rateChat']);
Route::get('system/tools/{id}', [AqController::class, 'getTool']);
Route::post('system/tools/{id}', [AqController::class, 'getToolMessage']);
Route::post('system/share', [AqController::class,'initShare']);
